<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $title;?></title>
<?php echo $header;?>
<script type="text/javascript">
$(document).ready(function(){
	// 上传附件
	$('#b_upload').click(function(){
		$.dialog.open('<?php echo base_url('upload/show/file/path');?>',{title:'<?php echo lang('com_title_upload_file');?>',width:400,height:100,lock:true});
	});
	
	// 地区设置
	var url = '<?php echo base_url('district/get_district_as_option')?>';
	var upid = 0;
	var selected = '<?php echo $conference['province'];?>';
	$('#province').districtList(url,upid,selected);
	selected = '<?php echo $conference['city'];?>';
	$("#city").districtChange(url, selected);
	$("#province").change(function(){
		$("#city").districtChange(url);
	});
});
</script>
</head>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td class="table_top_left" width="17" valign="top"></td>
	<td class="table_top_middle" valign="top">
		<table width="100%" height="31" border="0" cellpadding="0"
			cellspacing="0" class="left_topbg" id="table2">
			<tr>
				<td height="31" align="left"><div class="titlebt"><?php echo $page_label;?></div></td>
			</tr>
		</table>
	</td>
	<td class="table_top_right" width="16" valign="top"></td>
  </tr>
  <tr>
	<td class="table_left_side" height="71" valign="middle"></td>
    <td valign="top" bgcolor="#F7F8F9">
		<table width="100%" height="138" border="0" cellpadding="0" cellspacing="0">
		  <tr>
			<td valign="top"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
			  <tr>
				<td align="left" class="left_txt"><?php echo $nav_label,$title;?></td>
			  </tr>
			  <tr>
				<td > 
					<form id="f_conference" name="f_conference" method="post" action="<?php echo base_url('conference/edit_action'). $redirect;?>">
					  <table width="100%" class="list" cellpadding="0" style="border-collapse: collapse" border="1" bordercolor="#BFC4CA">
					  <tr>
						 <th colspan="2" height="25" bgcolor="#EEF2FB"><?php echo $title;?></th>
					  </tr>
					  <tr><td width="18%" height="25" align="right"><?php echo lang('conference_title');?></td>
					  <td width="83%" height="25" align="left">
					  <input name="title" type="text" id="title" value="<?php echo $conference['title'];?>" size="60" maxlength="70" />
						<span class="tip">*<?php printf(lang('com_tip_word_limit'), 70);?></span></td>
					  </tr>
					  <tr>
					  <td width="18%" height="25" align="right"><?php echo lang('com_column_name');?></td>
						<td width="83%" height="25" align="left">
						<select name="classid" id="classid">
						<option value="0" selected="selected"><?php echo lang('com_column_choise');?></option>
						<?php echo format_column_as_select($class);?>
						</select>
						<span class="tip">*<?php echo lang('com_tip_select_sub_column');?></span></td>
					  </tr>
					 <tr>
						   <td align="right" height="25"><?php echo lang('conference_time');?></td>
						   <td height="25" align="left">
							  从&nbsp;<input name="begintime" type="text" class="Wdate" id="begintime" onfocus="WdatePicker()" value="<?php echo $conference['begintime'];?>" size="15" maxlength="10"/>&nbsp;到
							  <input name="finishtime" type="text" class="Wdate" id="finishtime" onfocus="WdatePicker()" value="<?php echo $conference['finishtime'];?>" size="15" maxlength="10"/>&nbsp;<span class="tip">*</span></td>
					</tr>
					   <tr>
						  <td align="right" height="25"><?php echo lang('conference_address');?></td>
						  <td height="25" align="left">
						  <select name="province" id="province">
						  	<option value="t">请选择</option>
					  	</select>
						<select name="city" id="city">
						  	<option value="">请选择</option>
					  	</select>
						<!--<input name="detailaddress" type="text" id="detailaddress" size="60" maxlength="50" />-->
							<span class="tip">*<?php //printf(lang('com_tip_word_limit'), 50);?></span></td>
					   </tr>
<!--					<div id="conference_config_more">
					  <tr>
						<td width="18%" align="right" height="25"><?php echo lang('conference_area');?></td>
						<td width="83%" height="25" align="left">
						  <select name="area" id="area">
							 <option value="国内" selected="selected">国内</option>
							 <option value="国际">国际</option>
							 <option value="其它">其它</option>
						  </select></td>
						</tr>
						<tr>
						<td width="18%" align="right" height="25"><?php echo lang('conference_founding');?></td>
						<td width="83%" height="25" align="left"><input class="Wdate" name="foundingtime" type="text" id="foundingtime" size="15" maxlength="10" onfocus="WdatePicker()"/></td>
						</tr>
						<tr>
						   <td align="right" height="25"><?php echo lang('conference_holdtimes');?></td>
						   <td height="25" align="left"><select name="holdtimes" id="holdtimes">
								<option value="0" selected="selected">0</option>
								<?php
						for ($i = 1; $i < 50; $i++) {
						   echo '<option value="'.$i.'">'.$i.'</option>';
						}
						?>
							 </select></td>
						   </tr>
						<tr>
						   <td align="right" height="25"><?php echo lang('conference_period');?></td>
						   <td height="25" align="left">
							 <select name="period_year" id="period_year">
								<option value="每年" selected="selected">每年</option>
								<option value="每两年">每两年</option>
								<option value="每三年">每三年</option>
								<option value="每四年">每四年</option>
								<option value="每月">每月</option>
								<option value="每周">每周</option>
								<option value="每四年以上">每四年以上</option>
							 </select>
							 <select name="period_num" id="period_num">
								<option value="一届" selected="selected">一届</option>
								<option value="两届">两届</option>
								<option value="三届">三届</option>
								<option value="三届以上">三届以上</option>
							 </select></td>
						   </tr>
					   <tr>
					   	<td align="right" height="25"><?php echo lang('conference_cutoff');?></td>
					   	<td height="25" align="left"><input class="Wdate" name="cutofftime" type="text" id="cutofftime" size="15" maxlength="10" onfocus="WdatePicker()"/></td>
				   	</tr>
					   <tr>
					   	<td align="right" height="25"><?php echo lang('conference_fee');?></td>
					   	<td height="25" align="left"><input name="fee" type="text" id="fee" size="10" maxlength="5" />
					   		<span class="tip"><?php printf(lang('com_tip_word_limit'), 5);?></span></td>
				   	</tr>
					   <tr>
						  <td align="right" height="25"><?php echo lang('conference_website');?></td>
						  <td height="25" align="left"><input name="website" type="text" id="website" size="30"
						maxlength="70" />
						  	<span class="tip"><?php printf(lang('com_tip_word_limit'), 70);?></span></td>
					   </tr>
					   <tr>
						  <td align="right" height="25"><?php echo lang('conference_object');?></td>
						  <td height="25" align="left"><textarea name="object" cols="60" rows="3" id="object"></textarea>
						  	<span class="tip"><?php printf(lang('com_tip_word_limit'), 30);?></span></td>
					   </tr>
					   <tr>
						  <td align="right" height="25"><?php echo lang('conference_host');?></td>
						  <td height="25" align="left"><input name="host" type="text" id="host" size="60" maxlength="70" />
						  	<span class="tip"><?php printf(lang('com_tip_word_limit'), 70);?></span></td>
					   </tr>
					   <tr>
						  <td align="right" height="25"><?php echo lang('conference_undertake');?></td>
						  <td height="25" align="left"><input name="undertake" type="text" id="undertake" size="60"
						maxlength="70" />
						  	<span class="tip"><?php printf(lang('com_tip_word_limit'), 70);?></span></td>
					   </tr>
					   <tr>
						  <td align="right" height="25"><?php echo lang('conference_assistant');?></td>
						  <td height="25" align="left"><input name="assistant" type="text" id="assistant" size="60"
						maxlength="70" />
						  	<span class="tip"><?php printf(lang('com_tip_word_limit'), 70);?></span></td>
					   </tr>
					</div>-->
					   <tr>
						<td width="18%" align="right" height="25"><?php echo lang('conference_content');?></td>
						<td width="83%" height="25" align="left">
						   <textarea name="content" cols="100" rows="20" id="content"><?php echo $conference['content'];?></textarea></td>
						</tr>
						<tr>
						   <td align="right"><?php echo lang('com_title_upload_file');?></td>
						   <td align="left"><input name="path" type="text" id="path" value="<?php echo $conference['path'];?>" size="50" maxlength="255" />
						   	<input name="b_upload" type="button" class="button" id="b_upload"
				value="<?php echo lang('com_button_upload');?>" />
						   	<span class="tip"><?php echo lang('com_upload_file_tip');?></span></td>
						   </tr>
						<tr>
						   <td align="right"><?php echo lang('com_keyword');?></td>
						   <td align="left"><input name="keyword" type="text" id="keyword" value="<?php echo $conference['keyword'];?>" size="50"
						maxlength="70" />
						   	<span class="tip"><?php printf(lang('com_tip_keyword_limit'), 70);?></span></td>
						   </tr>
						<tr>
						   <td align="right"><?php echo lang('com_releasename');?></td>
						   <td align="left"><input name="releasename" type="text" id="releasename" value="<?php echo $loginname;?>" size="20"
						maxlength="15" readonly="readonly" />
						   	<span class="tip">*<?php printf(lang('com_tip_word_limit'), 20);?></span></td>
						   </tr>
						<tr>
						   <td align="right"><?php echo lang('com_remark');?></td>
						   <td align="left"><input name="remark" type="text" id="remark" value="<?php echo $conference['remark'];?>" size="50"
						maxlength="20" />
						   	<span class="tip"><?php printf(lang('com_tip_admin_visible'), 20);?></span></td>
						   </tr>
					
					  <tr><td colspan="2" height="25">
					  <input id="conference_id" name="conference_id" type="hidden" value="<?php echo $conference['id'];?>" />
  						<input id="origin_classid" name="origin_classid" type="hidden" value="<?php echo $conference['classid'];?>" />
					  <input name="s_conference_edit" type="submit" class="button" id="s_conference_edit" value="<?php echo lang('com_button_edit');?>" />
						<input name="Submit2" type="reset" class="button" value="<?php echo lang('com_button_reset');?>" />
					</td></tr>
					  </table>
					</form> 
				</td>
			  </tr>
			  </table>
			  </td>
		  </tr>
		</table>
	</td>
    <td class="table_right_side"></td>
  </tr>
  <tr>
    <td valign="middle" class="table_bottom_left">&nbsp;</td>
    <td height="17" valign="top" class="table_bottom_middle">&nbsp;</td>
    <td class="table_bottom_right">&nbsp;</td>  </tr>
</table>
</body>
</html>
